<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../../js/easyui/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../../../js/easyui/themes/icon.css">
		<script type="text/javascript" src="../../../js/jquery-1.11.1.js"></script>
		<script type="text/javascript" src="../../../js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../../../js/easyui/locale/easyui-lang-zh_CN.js"></script>
	</head>

	<body>
		<div style="margin:20px 0;">
			<a href="javascript:void(0)" class="easyui-linkbutton" onclick="openWidow()">Open</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" onclick="closeWindow()">Close</a>
		</div>
		<div id="win" class="easyui-window" closed="true" title="My Window" style="padding:10px;width:200px;height:100px;">
			window content
		</div>
		<script>
			function openWidow() {
				$('#win').window({
					collapsible: false,
					minimizable: false,
					maximizable: false,
					tools: [{
						iconCls: 'icon-add',
						handler: function() {
							alert('add');
						}
					}, {
						iconCls: 'icon-remove',
						handler: function() {
							alert('remove');
						}
					}]
				}).window("open");
			}

			function closeWindow() {
				$("#win").window("close")
			}
		</script>
	</body>

</html>